home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
GameKit
/
Apps
/
HighScoreServer
/
ServerMain.m
< prev
Wrap
Text File
|
1995-06-12
|
440b
|
18 lines
// ServerMain is a basic server program which handles the high scores.
// It sets up a port and then waits for clients.
#import <remote/NXConnection.h>
#import <gamekit/gamekit.h>
int main()
{
id distributor = [[HighScoreDistributor alloc] init];
id connection = [NXConnection registerRoot:distributor
withName:"DAYHighScoreServer"];
#ifdef LOGGING_ENABLED
[HighScoreServer turnLoggingOn:YES];
#endif
[connection run];
exit(0);
}